# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-gls
pkgver=0.11.3
pkgrel=0
pkgdesc="pythonic generic language server"
url="https://github.com/openlawlibrary/pygls"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-pydantic py3-typeguard"
makedepends="py3-setuptools py3-setuptools_scm py3-toml py3-wheel"
checkdepends="py3-pytest py3-pytest-asyncio py3-mock"
source="$pkgname-$pkgver.tar.gz::https://pypi.python.org/packages/source/p/pygls/pygls-$pkgver.tar.gz"
builddir="$srcdir/pygls-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="." pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
2209fa3f8cfd82de4edfe832f4e01ee8f805bbc145dca7f5f35d99919b2aace4a9c25fb61539d065509e163dc3db51cf8ec17b163ffd7ed4a25f33ac0c520a11  py3-gls-0.11.3.tar.gz
"
